package com.ruoyi.system.utils;

/**
 * @Description: 错误校验码
 * @Author: jsj
 * @Date: 2022/8/18
 */
public enum BizCodeEnum {
    UNKNOWN_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(11001,"参数格式校验失败"),
    PASSWORD_ISEMPTY_EXCEPTION(10001,"密码或确认密码不能为空"),
    PASSWORD_NOT_SAME_EXCEPTION(10002,"密码和确认密码不一致"),
    ILLEGAL_EMAIL_EXCEPTION(10003,"邮箱不合法"),
    ILLEGAL_PHONE_EXCEPTION(10004,"手机号不合法"),
    SMS_CODE_EXCEPTION(10100,"短信验证码获取频率太高,请稍后再试"),
    PHONE_CAPTCHA_EXCEPTION(10101,"短信验证码错误"),
    USER_UNLOGIN_EXCEPTION(10201,"用户未登录");


    private int code;
    private String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
